<script setup lang="ts">
const back = () => {
  uni.navigateBack();
}
const props = defineProps({
  id: {
    type: String,
    default: ''
  }
})
</script>

<template>
  <view class="container-success">
    <view>
      <view class="logo-success">
        <view class="duih1"></view>
        <view class="duih2"></view>
      </view>
      <view class="success-text">{{props.id ? "修改成功" : "发布成功"}}</view>
      <view class="text-realy">待用户确认</view>
      <view class="hand-btn" @click="back">返回</view>
    </view>
  </view>
</template>

<style scoped lang="scss">
.container-success {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -100px;
  text-align: center;
  .logo-success {
    position: relative;
    margin: auto;
    height: 136px;
    width: 136px;
    opacity: 1;
    border-radius: 50%;
    /* 自动布局 */
    display: flex;
    box-sizing: border-box;
    border: 5px dashed #4B7BF5;
  }
  .success-text {
    color: #4B7BF5;
    font-size: 20px;
    font-weight: bold;
    margin-top: 30px;
  }
  .text-realy {
    color: #4B7BF5;
    letter-spacing: 16px;
    margin-top: 20px;
  }
  .hand-btn {
    border: 1px solid #4B7BF5;
    color: #4B7BF5;
    height: 52px;
    width: 257px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 52px;
    margin: 20px auto;
    font-size: 18px;
  }
  .duih1 {
    position: absolute;
    left: 47.89px;
    top: 61.31px;
    width: 9.82%;
    height: 22.69%;
    transform: rotate(-48deg);
    opacity: 1;
    background: #4B7BF5;
  }
  .duih2 {
    position: absolute;
    left: 67.5px;
    top: 40.95px;
    width: 9.39%;
    height: 38.75%;
    transform: rotate(40deg);
    opacity: 1;
    background: #4B7BF5;
  }
}

</style>